package com.cicc.beergamevirtualsimulationsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cicc.beergamevirtualsimulationsystem.common.constant.UserConstant;
import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@TableName("user")
public class UserEntity {

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    private String phone;
    @NotBlank(message = UserConstant.PWD_NULL)
    private String pwd;
    @NotBlank(message = UserConstant.NAME_NULL)
    private String name;
    private String captcha;
    private LocalDateTime endDate;
}
